package com.atmilan.quartz.model.entity.carotta;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Leam商品sku映射
 * @Description: 
 * @author daigb
 * @date 2021-06-02
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CarottaProductSku extends Model<CarottaProductSku> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    /**
     * 商品id
     */
    private Long productId;

    /**
     * skuId
     */
    private Long skuId;

    /**
     * title(suk)
     */
    private String title;

    /**
     * price
     */
    private BigDecimal price;

    /**
     * sku
     */
    private String sku;

    /**
     * position
     */
    private Integer position;

    /**
     * 库存策略
     */
    private String inventoryPolicy;

    /**
     * compare_at_price
     */
    private BigDecimal compareAtPrice;

    /**
     * 物流服务
     */
    private String fulfillmentService;

    /**
     * 存货管理
     */
    private String inventoryManagement;

    /**
     * size
     */
    private String size;

    /**
     * color
     */
    private String color;

    /**
     * option3
     */
    private String option3;

    /**
     * createAt
     */
    private Date createdAt;

    /**
     * updated_at
     */
    private Date updatedAt;

    /**
     * 是否纳税
     */
    private Boolean taxable;

    /**
     * barcode
     */
    private String barcode;

    /**
     * 克
     */
    private Integer grams;

    /**
     * image_id
     */
    private Long imageId;

    /**
     * weight
     */
    private BigDecimal weight;

    /**
     * weight_unit
     */
    private String weightUnit;

    /**
     * inventory_item_id
     */
    private Long inventoryItemId;

    /**
     * inventory_quantity
     */
    private Integer inventoryQuantity;

    /**
     * old_inventory_quantity
     */
    private Integer oldInventoryQuantity;

    /**
     * requires_shipping
     */
    private Boolean requiresShipping;

    /**
     * admin_graphql_api_id
     */
    private String adminGraphqlApiId;


}
